import request from "@/utils/request";

const FeedbackAPI = {
  /**
   * 获取反馈列表
   */
  getFeedbackList(params: PageQuery) {
    return request<any, any>({
      url: "/api/v1/feedback/page",
      method: "get",
      params,
    });
  },
  /**
   * 编辑反馈
   */
  editFeedback(data: { id: number; status: number }) {
    return request<any, any>({
      url: "/api/v1/feedback/edit",
      method: "put",
      data,
    });
  },
};

export default FeedbackAPI;
